package lab02.test12;

public class Test {
    public static void main(String[] args) {
        Circle c1 = new Circle();
        c1.raduis = 1.0;

        System.out.println("半径为1的圆的面积："+c1.area());
        System.out.println("半径为1的圆的周长："+c1.perimeter());

        Rectangular r1 = new Rectangular();
        r1.height = 6.0;
        r1.width = 7.0;

        System.out.println("长方形的面积为："+r1.area());
        System.out.println("长方形的周长为："+r1.perimeter());
    }
}
